<div ng-controller="userPersonalController">
<!-- contain BEGIN -->
        <div class="right-product right-full animate-time" ng-class="{ true: 'right-full', false: 'right-off' }[isActive]">
            <div class="center-back right-back">
            	<ul class="breadcrumb">
	                <li>
	                    <a ui-sref="home">
	                        <img class="breadcrumb-right-img-home" height="20px" src="../images/right-product/home.png">首页
	                    </a>
	                </li>
	                <li>
	                    <img class="breadcrumb-right-img" src="../images/public/right4.png">
	                </li>
	                <li>
	                    <a>用户管理</a>
	                </li>
	                <li>
	                    <img class="breadcrumb-right-img"src="../images/public/right4.png">
	                </li>
	                <li>
	                    <a class="active">用户管理</a>
	                </li>
            	</ul>
            	<div class="button-group">
                    <button type="button" class="btn btn-default" data-toggle="modal" data-target="#add">
                        <span class="glyphicon glyphicon-plus"></span> 新增
                    </button>
                    <button type="button" class="btn btn-default yellow"  ng-mousedown="getDataID()" ng-click="check()">
                        <span class="glyphicon glyphicon-trash" ></span> 批量删除
                    </button>
                     <button type="button" class="btn btn-default redbtn" ng-mousedown="getDataID()" ng-click="disabled()">
                        <span class="glyphicon glyphicon-minus-sign"></span> 批量禁用
                    </button>
                     <button type="button" class="btn btn-default"  ng-mousedown="getDataID()"ng-click="enable()">
                        <span class="glyphicon glyphicon-ok-sign"></span> 批量启用
                    </button>
                     <button type="button" class="btn btn-default redbtn" data-toggle="modal" data-target="#Roleassignment">
                        <span class="glyphicon glyphicon-plus"></span> 批量分配角色
                    </button>
                    <div class="panel panel-default pull-right search-group">
                    	<div class="pull-left search-group-left">
	                        <span class="pull-left form-span">注册时间</span>
	                        <input type="date" class="pull-left form-control search-input-public">
	                        <span class="pull-left form-span mar">至</span>
	                        <input type="date"  class="pull-left form-control search-input-public">
	                    </div>    
                   		<div class="pull-right " ng-include="'public/search.html'"></div>
                    </div>
                    
            	</div>
                <div class="container-fluid">
                    <div class="info-center">
                   		<div class="contain"> 
                        	<personal-table></personal-table>
                    	</div>
                	</div>
            		<div class="info-bottom">
	            	<table>
	                    <tfoot ng-show="isNoData">
	                        <tr>
	                            <td colspan="12">

		                                <nav>
		                                    <tm-pagination conf="paginationConf"></tm-pagination>
		                                </nav>  
	                        	</td>
	                        	<td colspan="12" class="text-center" ng-hide="isNoData">无相关信息</td>
	                        </tr>
	                    </tfoot>
	                </table>
	            </div>
                </div>
        </div>
<!-- contain END -->

<!--add-->
<div  ng-include="'user/personal/add.html'"></div>
<!--add end--> 


<!-- 所属机构 -->
<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="packing">
            <div class="modal-dialog " role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">个人用户所属机构</h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">机构Id：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_institutionId " disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">公司名称：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_institutionName " disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">显示名称：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_institutionDisplayName " disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">机构类型：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_institutionType" disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">性质：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_institutionOrder" disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">行业：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_industry	" disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">省：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_province" disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">城市：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_city " disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">地址：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_address" disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">联系电话：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_phone " disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">联机人：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_contactName	" disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">邮编：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_postcode" disabled />    
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">状态：</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text"  class="form-control" ng-model="institution_enabled" disabled />    
                            </div>
                        </div>
					</div>
                    <div class="modal-footer fixd-footer">
                    	<div class="col-xs-12">
                       		 <button type="button" class="btn btn-primary" data-dismiss="modal">返回列表</button>
                        </div>
                    </div>
                </div>
            </div>
</div>
<!-- 所属机构 BEGIN -->

 <!-- 详情 BEGIN -->
<div  ng-include="'user/personal/details.html'"></div>       
<!-- 详情 END -->


<!-- 修改 BEGIN -->
<div  ng-include="'user/personal/update.html'"></div>         
<!-- 修改 END -->

<!-- 删除 BEGIN -->
        <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" aria-hidden="true" id="delete">
            <div class="modal-dialog delete-modal">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title text-center">删除警告</h4></div>
                    <div class="modal-body text-center">
                    	<p class="delete-prompt">请确认是否删除该行角色</p>
                    </div>
                    <div class="modal-footer">
                        <div class="col-xs-6">
                            <button type="button" class="btn btn-default btn-fff" data-dismiss="modal">取消</button></div>
                        <div class="col-xs-6">
                            <button type="button" class="btn btn-primary pull-left confirm-del-btn" ng-click="delete()" data-dismiss="modal">确定</button></div>
                    </div>
                </div>
            </div>
        </div>
<!-- 删除 END -->
<!-- 重置密码 BEGIN -->
        <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" aria-hidden="true" id="passwordReset">
            <div class="modal-dialog delete-modal">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title text-center">用户管理 - 重置密码</h4>
                    </div>    
                    <div class="modal-body text-center">
                    	<p class="delete-prompt">请确认是否重置密码</p>
                    </div>
                    <div class="modal-footer">
                        <div class="col-xs-6">
                            <button type="button" class="btn btn-default btn-fff" data-dismiss="modal">取消</button>
                        </div>
                        <div class="col-xs-6">
                            <button type="button" class="btn btn-primary pull-left confirm-del-btn" ng-click="setpasswordReset()" >重置密码</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
<!-- 重置密码 END -->
<!-- 修改密码 BEGIN -->
        <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" aria-hidden="true" id="password">
            <div class="modal-dialog delete-modal">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title">用户管理 - 修改密码</h4></div>
                        
                    <div class="modal-body text-center">
                    	<form name="password" novalidate>
	                    	<div class="form-group">
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >原始密码：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="password"  
		                            	autocomplete="off" 
		                            	class="form-control"
		                            	name="oldPasswords"
		                            	ng-model="oldPassword"
		                            	ng-blur="originalPassword()"
		                            	placeholder="原始密码"
		                            	required/>
		                            <div class="error text-left" ng-show="password.oldPasswords.$dirty && password.oldPasswords.$invalid">
									    <small class="error" ng-show="password.oldPasswords.$error.required">密码不能为空</small>
			 						 </div>	
			 						 <div class="error text-left" ng-show="password.oldPasswords.$valid && !passwordcodes">
									    <small class="error" ng-show="!passwordcodes">原始密码不正确</small>
			 						 </div>
		                        </div>       
	                        </div>
	                        <div class="form-group">
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >新密码：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="password" 
		                            	name="uselessPassword"   
		                            	autocomplete="off" 
		                            	class="form-control" 
		                            	ng-model="uselessPassword"
		                            	placeholder="新密码"
		                            	required/>
		                            <div class="error text-left" ng-show="password.uselessPassword.$dirty && password.uselessPassword.$invalid">
									    <small class="error" ng-show="password.uselessPassword.$error.required">密码不能为空</small>
			 						 </div>
		                        </div>       
	                        </div>
	                        <div class="form-group height-auto">
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >确认密码：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="password" 
		                            	name="newPassword"  
		                            	autocomplete="off" 
		                            	class="form-control" 
		                            	ng-model="newPassword"
		                            	placeholder="请再输一遍密码"
		                            	required/>
		                            <div class="error text-left" ng-show="password.newPassword.$dirty && password.newPassword.$invalid">
									    <small class="error" ng-show="password.uselessPassword.$error.required">密码不能为空</small>
									    
			 						 </div>	
			 						 <div class="error text-left" ng-show="uselessPassword != newPassword">
			 						 	<small class="error" >请保持密码一致</small>
			 						 </div>	
		                        </div>       
	                        </div>
		                </form>        
                    </div>
                    <div class="modal-footer">
                        <div class="col-xs-6">
                            <button type="button" class="btn btn-default btn-fff" data-dismiss="modal">取消</button></div>
                        <div class="col-xs-6">
                            <button type="button" class="btn btn-primary pull-left confirm-del-btn" 
                            	ng-disabled="password.$invalid || uselessPassword != newPassword || passwordcode != 0000"
                            	ng-click="updatepassword()"
                            	>保存</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
<!-- 修改密码 END -->
<!-- 批量分配角色 BEGIN -->
        <div class="modal fade bs-example-modal-lg roleassignment" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="Roleassignment">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title pull-left">用户角色分配列表</h4>
                        <!--<button type="button" class="close pull-right" data-dismiss="modal" aria-hidden="true">×</button>-->
                        <img class="pull-right" width="30px" data-dismiss="modal" aria-hidden="true"  src="../images/model/close999.png">
                    </div>
                    <div class="modal-body text-center">
                    	<div class="bg-model">
                    		<h4 class="modal-title text-left small">请选择角色</h4>
                    	<table class="table table-bordered table-header">
                                <thead>
                                    <tr>
                                    	<td class="w5 text-center">
                                            	<input type="checkbox" ng-model="master" ng-click="all(bool, tabVal)" class="ng-pristine ng-untouched ng-valid">
                                       	</td>
                                        <td class="w10 text-center">角色主键</td>
                                        <td class="w10 text-center">角色名称</td>
                                    </tr>
                                </thead>
                                <tbody id="personal-user-tbody">
                                	<!--<tr> ng-repeat="user in user_tabVal"-->
                                     <tr >
                                     	<td class="text-center">
                                            	<input type="checkbox" ng-model="bool" ng-checked="master" ng-click="chk(val,bool,$index)" class="ng-pristine ng-untouched ng-valid">
                                        </td>
                                        <td class="text-center">1</td>
                                        <td class="text-center">22</td> 
                                    </tr> 
                                     <tr >
                                     	<td class="text-center">
                                            	<input type="checkbox" ng-model="bool" ng-checked="master" ng-click="chk(val,bool,$index)" class="ng-pristine ng-untouched ng-valid">
                                        </td>
                                        <td class="text-center">2</td>
                                        <td class="text-center">22</td> 
                                    </tr> 
                                     <tr >
                                     	<td class="text-center">
                                            	<input type="checkbox" ng-model="bool" ng-checked="master" ng-click="chk(val,bool,$index)" class="ng-pristine ng-untouched ng-valid">
                                        </td>
                                        <td class="text-center">3</td>
                                        <td class="text-center">22</td> 
                                    </tr> 
                                </tbody>
                                <tfoot>
	                                
			                    </tfoot>
                         </table>    
                         	<div class="modal-footer">
				                        <div class=" pull-right">
				                            <button type="button" class="btn btn-primary pull-right " data-dismiss="modal">保存</button>
				                        </div>
				           </div>
                         </div>
                    </div>
                    
                </div>
            </div>
        </div>
<!-- 批量分配角色 END -->
<div>        	
        